package com.mvity.framework.system.service;

import java.util.List;

import com.mvity.framework.common.exception.AppException;
import com.mvity.framework.common.service.BaseService;
import com.mvity.framework.system.entity.SystemUser;
import com.mvity.framework.system.vo.UserAccountVO;
import com.mvity.framework.system.vo.UserVO;

public interface UserService extends BaseService {

	/**
	 * 初始化数据
	 * 
	 * @throws AppException
	 */
	public void initData() throws AppException;

	/**
	 * 验证登陆
	 * 
	 * @param userName
	 * @param password
	 * @throws AppException
	 */
	public String userLogin(String userName, String password) throws AppException;
	
	public String testAspect(String xx, int x1, char x2, String[] x3, List<String> x4, Long[] x5, boolean x6, SystemUser user) throws Exception;

	/**
	 * 加载用户帐号缓存
	 * 
	 * @return
	 * @throws AppException
	 */
	public List<UserAccountVO> loadAllUserAccountToCache() throws AppException;

	/**
	 * 加载用户信息缓存
	 * 
	 * @return
	 * @throws Exception
	 */
	public List<UserVO> loadAllUserToCache() throws AppException;

}
